<%@ page import="cn.school.entity.Student" %>
<%@ page import="java.util.Set" %>
<%@ page import="java.util.HashSet" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-03-26
  Time: 17:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      session.setAttribute("notice","明天是3-26");
      request.setAttribute("notice","今天是3-25");
      Student stu=new Student();
      stu.setQq("1940933");
      stu.setSname("小吴");
      request.setAttribute("stu",stu);
      String p[]={"dog","cat","snake","elephent"};
      request.setAttribute("animal",p);

      Set<String> set=new HashSet<>();
      set.add("hhh");
      set.add("kk");
      set.add("555");
      set.add("111111");
      request.setAttribute("myset",set);
  %>
  <!-- set不支持[]这种方式-->
  <%--<h1>${myset[1]}</h1>--%>
  <h3>
      ${animal[1]} <!-- 数组，list，set,map都可以-->
  </h3>
  <h2>学生的QQ: ${stu['qq']}</h2>
<h1>
    ${notice},找session:${sessionScope.notice}
</h1>
  <h1>
     第二个: ${fff.sss.fyy.zzz}
  </h1>
<h2>${stu.sname}</h2>
  <h2>${stu.getQq()}</h2>
<!-- findxxx()-->
</body>
</html>
